package com.ruoyi.web.controller.smtdashboard;

import com.github.pagehelper.PageInfo;
import com.ruoyi.smtdashboard.domain.entity.Charts;
import com.ruoyi.smtdashboard.domain.entity.QueryParams;
import com.ruoyi.smtdashboard.domain.entity.Smtdashboard;
import com.ruoyi.smtdashboard.service.SmtDashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/dashboardChart")
public class SMTdashboardChartConteroller {

    @Autowired
    SmtDashboardService smtDashboardService;

    @PostMapping("/querytable")
    public List<Smtdashboard> querytable(@Validated @RequestBody QueryParams queryParams){
        return smtDashboardService.queryDashboard(queryParams);
    }

    @PostMapping("/querytableMonthList")
    public List<Smtdashboard> querytableMonthList(@Validated @RequestBody QueryParams queryParams){
        return smtDashboardService.queryDashboardMonthList(queryParams);
    }

    @PostMapping("/queryClaim")
    public List<Charts> queryClaim(@Validated @RequestBody QueryParams queryParams){
        return smtDashboardService.queryClaim(queryParams);
    }

    @PostMapping("/queryClaimMonthList")
    public List<Charts> queryClaimMonthList(@Validated @RequestBody QueryParams queryParams){
        return smtDashboardService.queryClaimMonthList(queryParams);
    }

    @PostMapping("/queryNonConformity")
    public List<Charts> queryNonConformity(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryNonConformity(queryParams);
    }

    @PostMapping("/queryNonConformityMonthList")
    public List<Charts> queryNonConformityMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryNonConformityMonthList(queryParams);
    }

    @PostMapping("/querySortingFee")
    public List<Charts> querySortingFee(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.querySortingFee(queryParams);
    }

    @PostMapping("/querySortingFeeMonthList")
    public List<Charts> querySortingFeeMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.querySortingFeeMonthList(queryParams);
    }

    @PostMapping("/queryScrapRatio")
    public List<Charts> queryScrapRatio(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryScrapRatio(queryParams);
    }

    @PostMapping("/queryScrapRatioMonthList")
    public List<Charts> queryScrapRatioMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryScrapRatioMonthList(queryParams);
    }

    @PostMapping("/queryCAPA")
    public List<Charts> queryCAPA(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryCAPA(queryParams);
    }

    @PostMapping("/queryCAPAMonthList")
    public List<Charts> queryCAPAMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryCAPAMonthList(queryParams);
    }

    @PostMapping("/queryCompliance")
    public List<Charts> queryCompliance(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryCompliance(queryParams);
    }

    @PostMapping("/queryComplianceMonthList")
    public List<Charts> queryComplianceMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryComplianceMonthList(queryParams);
    }

    @PostMapping("/queryFindingsIPQC")
    public List<Charts> queryFindingsIPQC(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryFindingsIPQC(queryParams);
    }

    @PostMapping("/queryFindingsIPQCMonthList")
    public List<Charts> queryFindingsIPQCMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryFindingsIPQCMonthList(queryParams);
    }

    @PostMapping("/queryPartyFinding3rd")
    public List<Charts> queryPartyFinding3rd(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryPartyFinding3rd(queryParams);
    }

    @PostMapping("/queryPartyFinding3rdMonthList")
    public List<Charts> queryPartyFinding3rdMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryPartyFinding3rdMonthList(queryParams);
    }

    @PostMapping("/queryOQCBatchScan")
    public List<Charts> queryOQCBatchScan(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryOQCBatchScan(queryParams);
    }

    @PostMapping("/queryOQCBatchScanMonthList")
    public List<Charts> queryOQCBatchScanMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryOQCBatchScanMonthList(queryParams);
    }

    @PostMapping("/queryOQCLrr")
    public List<Charts> queryOQCLrr(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryOQCLrr(queryParams);
    }

    @PostMapping("/queryOQCLrrMonthList")
    public List<Charts> queryOQCLrrMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryOQCLrrMonthList(queryParams);
    }

    @PostMapping("/queryOQCDppm")
    public List<Charts> queryOQCDppm(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryOQCDppm(queryParams);
    }

    @PostMapping("/queryOQCDppmMonthList")
    public List<Charts> queryOQCDppmMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryOQCDppmMonthList(queryParams);
    }

    @PostMapping("/queryOQCOba")
    public List<Charts> queryOQCOba(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryOQCOba(queryParams);
    }

    @PostMapping("/queryOQCObaMonthList")
    public List<Charts> queryOQCObaMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryOQCObaMonthList(queryParams);
    }

    @PostMapping("/queryFoxInsight")
    public List<Charts> queryFoxInsight(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryFoxInsight(queryParams);
    }

    @PostMapping("/queryFoxInsightMonthList")
    public List<Charts> queryFoxInsightMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryFoxInsightMonthList(queryParams);
    }

    @PostMapping("/querySPIFpy")
    public List<Charts> querySPIFpy(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.querySPIFpy(queryParams);
    }

    @PostMapping("/querySPIFpyMonthList")
    public List<Charts> querySPIFpyMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.querySPIFpyMonthList(queryParams);
    }

    @PostMapping("/queryAOIFpy")
    public List<Charts> queryAOIFpy(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryAOIFpy(queryParams);
    }

    @PostMapping("/queryAOIFpyMonthList")
    public List<Charts> queryAOIFpyMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryAOIFpyMonthList(queryParams);
    }

    @PostMapping("/queryICTFpy")
    public List<Charts> queryICTFpy(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryICTFpy(queryParams);
    }

    @PostMapping("/queryICTFpyMonthList")
    public List<Charts> queryICTFpyMonthList(@Validated @RequestBody QueryParams queryParams) {
        return smtDashboardService.queryICTFpyMonthList(queryParams);
    }
}
